package com.qianyu.project.service.impl;

import com.qianyu.project.entity.InvoiceOpenInfo;
import com.qianyu.project.mapper.InvoiceOpenInfoMapper;
import com.qianyu.project.service.IInvoiceOpenInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 发票开票登记表 服务实现类
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
@Service
public class InvoiceOpenInfoServiceImpl extends ServiceImpl<InvoiceOpenInfoMapper, InvoiceOpenInfo> implements IInvoiceOpenInfoService {
    @Autowired
    InvoiceOpenInfoMapper im;
    @Override
    public List<InvoiceOpenInfo> list(InvoiceOpenInfo i) {
        return im.selectiList(i);
    }

    @Override
    public InvoiceOpenInfo getById(String id) {
        return im.selectiById(id);
    }

    @Override
    public int add(InvoiceOpenInfo i) {
        return im.inserti(i);
    }

    @Override
    public int update(InvoiceOpenInfo i) {
        return im.uppaeti(i);
    }

    @Override
    public int remove(String id) {
        return im.deletei(id);
    }
}
